//
//  CPuberInfoView.h
//  HCHK_iphone
//
//  Created by yilong zhang on 12-1-4.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//
#import "UIViewEx.h"
#import "CProduct.h"
#import "CGalleryView.h"
#import "CMainPageCtrl.h"

@class CRootCtrlManager;
@class CMainPageCtrl;

@interface CPuberInfoView : UIViewEx <GalleryDelegate, ProductDelegate, OperationDelegate>

@property (nonatomic, assign) UIImageView   *m_Icon;
@property (nonatomic, assign) UILabel       *m_Nick;

@property (nonatomic, assign) UILabel       *m_MyTitle;
@property (nonatomic, assign) UILabel       *m_FrdTitle;
@property (nonatomic, assign) UILabel       *m_FrdNum;
@property (nonatomic, assign) UILabel       *m_PrdTitle;
@property (nonatomic, assign) UILabel       *m_PrdNum;
@property (nonatomic, assign) UILabel       *m_ComTitle;
@property (nonatomic, assign) UILabel       *m_ComNum;
@property (nonatomic, assign) CGalleryView  *m_Gallary;
@property (nonatomic, assign) UILabel       *m_NoFavos;

@property (nonatomic, assign) UIActivityIndicatorView *m_Indicator;

@property (nonatomic, assign) NSNumber      *m_PubID;
@property (nonatomic, assign) CAscCounter   *m_NetCnt;
@property (nonatomic, assign) CAscCounter   *m_NativeCnt;
@property (nonatomic, assign) NSMutableArray*m_Datas;
@property (nonatomic, assign) BOOL          m_bIsLoading;

-(void)SetPuberInfoView:(CProduct*)product;
-(void)GetPubInfoFromSrv:(CProduct*)product;
-(void)AddProductsWithArray:(NSArray*)array;
-(void)AddProducts:(NSDictionary*)dic;
-(void)GetFriendUpload;
-(NSArray*)GetMyUploadFromNative;
-(void)CommitGetPubInfoRequest:(int)offset Limit:(int)limit Action:(NSString*)action PubID:(NSNumber*)pubid;
-(void)DidGetPubInfo:(NSDictionary*)dic;
-(void)ShowIndicator;
-(void)HiddenIndicator;

@end
